﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceProcess;

namespace SMTP
{
    class Program : ServiceBase
    {
        static void Main(string[] args)
        {
            Config.Load();
            AsynchronousSocketListener.StartListening();
            while (true)
            {
                System.Threading.Thread.Sleep(5);
            }
            //ServiceBase.Run(new Program());
        }
        public Program()
        {
            this.ServiceName = "Enen SMTP";
        }
        protected override void OnStart(string[] args)
        {
            base.OnStart(args);
        }

        protected override void OnStop()
        {
            base.OnStop();
        }
    }
}
